//
//  PeopleGroupApplyCell.m
//  MyYiJianKangApp
//
//  Created by 张国文 on 16/4/14.
//  Copyright © 2016年 hangzhouyijiyin. All rights reserved.
//

#import "PeopleGroupApplyCell.h"

@implementation PeopleGroupApplyCell

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self addMySubview];
    }
    return self;
}

// 布局
- (void)addMySubview
{
    // 用户头像
    self.friendImageV = [[UIImageView alloc] initWithFrame:CGRectMake(13 * kAdjustParamater, 10 * kAdjustParamater, 46 * kAdjustParamater, 46 * kAdjustParamater)];
    self.friendImageV.backgroundColor = [[UIColor blackColor] colorWithAlphaComponent:0.1];
    self.friendImageV.layer.cornerRadius = self.friendImageV.width / 2;
    self.friendImageV.layer.masksToBounds = YES;
    [self.contentView addSubview:_friendImageV];
    
    // 申请入群消息
    self.groupApplyLabel = [[UILabel alloc] initWithFrame:CGRectMake(self.friendImageV.right + 8 * kAdjustParamater, self.friendImageV.top + 4 * kAdjustParamater, 250 * kAdjustParamater, 15 * kAdjustParamater)];
    //   self.haoYouLabel.backgroundColor = [[UIColor blackColor] colorWithAlphaComponent:0.1];
  //  self.groupApplyLabel.text = @"群组申请消息";
    self.groupApplyLabel.textColor = [UIColor blackColor];
    self.groupApplyLabel.textAlignment = NSTextAlignmentLeft;
    self.groupApplyLabel.font = [UIFont systemFontOfSize:k16Big];
    [self.contentView addSubview:_groupApplyLabel];
    
    // 验证消息的内容
    self.groupApplyContentLabel = [[UILabel alloc] initWithFrame:CGRectMake(self.groupApplyLabel.left, self.groupApplyLabel.bottom + 7 * kAdjustParamater, 250 * kAdjustParamater, 15 * kAdjustParamater)];
    //    self.yanZhengLabel.backgroundColor = [[UIColor blackColor] colorWithAlphaComponent: 0.1];
    self.groupApplyContentLabel.textColor = [[UIColor blackColor] colorWithAlphaComponent:0.5];
    self.groupApplyContentLabel.textAlignment = NSTextAlignmentLeft;
    self.groupApplyContentLabel.font = [UIFont systemFontOfSize:k13Big];
    [self.contentView addSubview:_groupApplyContentLabel];
    
    // 时间
    self.timeLabel = [[UILabel alloc] initWithFrame:CGRectMake((375 - 100 - 10) * kAdjustParamater, 17 * kAdjustParamater, 100 * kAdjustParamater, 15 * kAdjustParamater)];
    //   self.timeLabel.backgroundColor = [[UIColor blackColor] colorWithAlphaComponent:0.1];
    self.timeLabel.textColor = [[UIColor blackColor] colorWithAlphaComponent:0.3];
    self.timeLabel.textAlignment = NSTextAlignmentRight;
    self.timeLabel.font = [UIFont systemFontOfSize:k14Big];
    [self.contentView addSubview:_timeLabel];
    
    
}



@end
